<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="pragma" content="no-cache" />
<title>后台控制面板--首页</title>
<link rel="stylesheet" type="text/css" href="../style/style.css" />
<link rel="stylesheet" href="/js/jquery/plugin/thickbox/thickbox.css" type="text/css" media="screen" />
<script type="text/javascript" src="/js/jquery/lib/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="/js/jquery/plugin/thickbox/thickbox.fix.js"></script>
<script type="text/javascript">
<!--
$(document).ready(function(){
	//提示信息
	var msgInfo = '${msgInfo?default("")}';
	if(msgInfo != '' && msgInfo != null){
		alert(msgInfo);
	}
});
//-->
</script>
</head>
<body class="indexbody">
	<div id="Content">
		<div style="width: 100%;">
			<div urlvalue="Oasp2803" functionid="FUNC00004" urlname="公告"
				recordcount="5" minflg="0" class="DesktopBlock" id="FUNC00004">
				<div id="Block">
					<div id="BlockHead">
						<table border="0" cellspacing="0" cellpadding="0" height="100%"
							width="100%">
							<tbody>
								<tr valign="center">
									<td width="5"></td>
									<td>收文管理</td>
									<td width="22"></td>
								</tr>
							</tbody>
						</table>
					</div>
					<div class="right_con">
	                	<ul class="rig_nav">
	                    	<li><a href="officialDoc_goSign.action">待办收文</a></li>
	                        <li><a href="officialDoc_goSigned.action">已签收</a></li>
	                        <li><a href="officialDoc_goOver.action">已办理</a></li>
	                        <li class="rig_nav_on"><a href="javascript:void(0);">查看发文</a></li>
	                    </ul>
					</div>
					<form method="post" action="officialDoc_signView.action" id="official_doc_view_form" name="official_doc_view_form">
					<input type="hidden" id="docid" name="officialDocPojo.id" value="${officialDocPojo.id?default('')}" />
					<div id="BlockDetail">
						<table border="0" cellpadding="1" cellspacing="1" width="100%"
							bgcolor="#f9f9f9">
							<tbody>

								<tr>
									<td class="STYLE10" align="center" bgcolor="#FFFFFF"
										height="30">
										<div class=main id=main0>
											<ul class=block>
												<li>
													<div id=formtop>
														<table border="0" cellpadding="1" cellspacing="1"
															width="100%" bgcolor="#dddedb">
															<tbody>
																<tr height=26 width="100%">
																	<td class=STYLE109 align=right width="12%"
																		bgColor=#ffffff height=15><span
																		class="STYLE2 STYLE3">公文文号：</span>
																	</td>
																	<td align=left width="20%" bgColor=#ffffff height=15>
																		${officialDocPojo.doc_no?default('')}
																	</td>
																	<td class=STYLE109 align=right width="10%"
																		bgColor=#ffffff height=30><span
																		class="STYLE2 STYLE3">文件类别：</span>
																	</td>
																	<td align=left width="21%" bgColor=#ffffff>
																		<#if paramMap.param1001?exists>
																		<#list paramMap.param1001 as item>
																			<#if item.paramCode==officialDocPojo.doc_type?default('')>${item.paramName}</#if>
																		</#list>
																		</#if>
																	</td>
																	<td class=STYLE109 align=right width="6%"
																		bgColor=#ffffff><span class="STYLE2 STYLE3">发送时间：</span>
																	</td>
																	<td align=left width="31%" bgColor=#ffffff>
        																<#assign f_send_time="">
        																<#if officialDocPojo.send_time?exists>
        																<#assign f_send_time=officialDocPojo.send_time?string('yyyy-MM-dd')>
        																</#if>
																		${f_send_time}
																	</td>
																</tr>
																<tr height=26 width="100%">
																	<td class=STYLE109 align=right width="12%"
																		bgColor=#f6f6f6 height=15><span
																		class="STYLE2 STYLE3">公文所属：</span>
																	</td>
																	<td class=STYLE109 align=left width="20%"
																		bgColor=#f6f6f6 height=15>
																		${officialDocPojo.belong_section?default('')}
																	</td>
																	<td align=right width="10%" bgColor=#f6f6f6 height=30><span
																		class=STYLE109>缓急程度：</span>
																	</td>
																	<td class=STYLE109 align=left bgColor=#f6f6f6>
																			<#if paramMap.param1002?exists> 
																			<#list paramMap.param1002 as item>
																				<#if item.paramCode==officialDocPojo.emergency_level?default('')>${item.paramName}</#if>
																			</#list>
																			</#if>
																	</td>
																	<td align=right bgColor=#f6f6f6><span
																		class=STYLE109>密级：</span>
																	</td>
																	<td class=STYLE109 align=left bgColor=#f6f6f6>
																			<#if paramMap.param1003?exists> 
																			<#list paramMap.param1003 as item>
																				<#if item.paramCode==officialDocPojo.confidential_level?default('')>${item.paramName}</#if>
																			</#list>
																			</#if>
																	</td>
																</tr>
																<tr height=26 width="100%">
																	<td align=right width="12%" bgColor=#ffffff height=30><span
																		class="STYLE2 STYLE3">公文标题：</span>
																	</td>
																	<td align=left bgColor=#ffffff colspan=5 height=30>${officialDocPojo.title?default('')}
																	</td>
																</tr>
																<tr>
																	<td vAlign=center align=right bgColor=#f6f6f6><span
																		class=STYLE109>正文内容： </span>
																	</td>
																	<td class=STYLE109 align=left bgColor=#f6f6f6 colspan=5 height=20>
																		<div style="overflow:auto;padding:5px;">${officialDocPojo.content?default('')}</div>
																	</td>
																</tr>
																<tr>
																	<td vAlign=center bgColor=#ffffff align=right><span
																		class="STYLE2 STYLE3">主题词：</span>
																	</td>
																	<td class="STYLE109 STYLE2 STYLE2" bgColor=#ffffff
																		align=left colspan=5 height=40>
																			${officialDocPojo.key_word?default('')}</td>
																</tr>
																<tr>
																	<td vAlign=center bgColor=#f6f6f6 align=right><span
																		class="STYLE2 STYLE3">附件：</span>
																	</td>
																	<td class="STYLE109 STYLE2 STYLE2" bgColor=#f6f6f6 align=left colspan=5 height=40>
																		<#if officialDocPojo.docAttachList?exists>
																			<#list officialDocPojo.docAttachList as attachlist>
																				<div style="clear:both;">
																					<div style="float:left;margin-top:5px;position: relative;">
																						&nbsp;附件说明：${attachlist.attach_title}&nbsp;&nbsp;<a target="_blank" href="${attachlist.attach_path}" onclick="doSign('${officialDocOrgPojo.id}')">${attachlist.attach_old_name }</a>
																					</div>
																				</div>
																		
																	</td>
																</tr>

																
																<tr>
														<td class=STYLE3 bgColor=#ffffff align=center colSpan=6 height=30>
																		
																	
																		<div style="height: 30px;margin:5px auto 5px;">
																				<div style="float:right;margin-right:10px;">
																				<span class="xp-b-leftSubmit2">
																				</span> <a id="linkView" class="xp-b-submit2"
																					style="line-height: 30px;"       	href="${attachlist.attach_path}" onclick="doSign('${officialDocOrgPojo.id}')" >查看文件</a><!-- href="${attachlist.attach_path}">查看文件</a>-->
																					<span class="xp-b-rightSubmit2">
																					
																				</span>
							
																				</div>
																			
																		
																				<#if officialDocOrg?exists && officialDocOrg.sign_status?default("") == "1" && officialDocPojo.doc_file_path?exists>
																				<div style="float:right;margin-right:10px;">
																				<span class="xp-b-leftSubmit2">
																				</span><a id="linkView" class="xp-b-submit2" target="_blank"
																					style="line-height: 30px;" href="officialDoc_downAttach.action?officialDocPojo.id=${officialDocPojo.id?default('')}">下载公文</a>
																					<span class="xp-b-rightSubmit2">
																				</span>
																				</div>
																				</#if>
																			</#list>
																	
																			</#if>
																		</div>
																	</td>
																</tr>
															</tbody>
														</table>
													</div>
												</li>
											</ul>
										</div></td>
								</tr>
							</tbody>
						</table>
					</div>

					</form>
				</div>
			</div>
		</div>
	</div>
	</div>
	</div>

<script type="text/javascript">
<!--
$(document).ready(function(){
	var htmlFile = '${officialDocPojo.htmlFileName?default('')}';
	if(htmlFile != '' && htmlFile != 'null'){
		var iWidth = 960;                          //弹出窗口的宽度;
		var iHeight = 600;                        //弹出窗口的高度;
		var iTop = (window.screen.availHeight-30-iHeight)/2;       //获得窗口的垂直位置;
		var iLeft = (window.screen.availWidth-10-iWidth)/2;           //获得窗口的水平位置;
		window.open('/temp/' + htmlFile, '', 'height='+iHeight+', width='+iWidth+', top='+iTop+', left='+iLeft+', toolbar=no, menubar=no, scrollbars=yes, resizable=no,location=no, status=no');
	}
});
function viewDoc(){
	if($("#docid").val()=="" || $("#docid").val()==0){
		alert("无法找到公文!");
		return;
	}
	var doc_file_path = '${officialDocPojo.doc_file_path?default('')}';
	if(doc_file_path == ''){alert("对不起，该公文还没有选择头文件！");return;}
	var iWidth = 1024;                          //弹出窗口的宽度;
	var iHeight = 768;                        //弹出窗口的高度;
	var iTop = (window.screen.availHeight-30-iHeight)/2;       //获得窗口的垂直位置;
	var iLeft = (window.screen.availWidth-10-iWidth)/2;           //获得窗口的水平位置;
	window.open("viewdoc.jsp?docid="+$("#docid").val(), '', 'height='+iHeight+', width='+iWidth+', top='+iTop+', left='+iLeft+', toolbar=no, menubar=no, scrollbars=yes, resizable=no,location=no, status=no');
}

function downDoc(){
	if($("#docid").val()=="" || $("#docid").val()==0){
		alert("无法找到公文!");
		return;
	}
	window.location.href = "officialDoc_downAttach.action?officialDocPojo.id="+$("#docid").val();
}
function doSign(lid){
	//if(window.confirm("您确定要签收该文件吗？")){
		$("#official_doc_view_form").attr("action", "officialDoc_doSign.action?officialDocOrgPojo.id=" + lid   );
		$("#official_doc_view_form").submit();
	//}
}

//-->
</script>
</body>
</html>

